package com.satchi.hib.pojo;

/**
 * FinUserId entity. @author MyEclipse Persistence Tools
 */

public class FinUserId implements java.io.Serializable {

	// Fields

	private Integer uid;
	private String uname;
	private String upwd;

	// Constructors

	/** default constructor */
	public FinUserId() {
	}

	/** full constructor */
	public FinUserId(Integer uid, String uname, String upwd) {
		this.uid = uid;
		this.uname = uname;
		this.upwd = upwd;
	}

	// Property accessors

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getUname() {
		return this.uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getUpwd() {
		return this.upwd;
	}

	public void setUpwd(String upwd) {
		this.upwd = upwd;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof FinUserId))
			return false;
		FinUserId castOther = (FinUserId) other;

		return ((this.getUid() == castOther.getUid()) || (this.getUid() != null
				&& castOther.getUid() != null && this.getUid().equals(
				castOther.getUid())))
				&& ((this.getUname() == castOther.getUname()) || (this
						.getUname() != null && castOther.getUname() != null && this
						.getUname().equals(castOther.getUname())))
				&& ((this.getUpwd() == castOther.getUpwd()) || (this.getUpwd() != null
						&& castOther.getUpwd() != null && this.getUpwd()
						.equals(castOther.getUpwd())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUid() == null ? 0 : this.getUid().hashCode());
		result = 37 * result
				+ (getUname() == null ? 0 : this.getUname().hashCode());
		result = 37 * result
				+ (getUpwd() == null ? 0 : this.getUpwd().hashCode());
		return result;
	}

}